import React, { useEffect } from 'react'

export default function A() {
  useEffect(() => {
    console.log('A 挂载');

    return () => {
      console.log('A 卸载')
    }
  }, [])

  return (
    <div id="a">A</div>
  )
}
